<%-- 
    Document   : ketquatimkiemdealdamuacontent
    Created on : Oct 27, 2011, 3:20:46 PM
    Author     : Administrator
--%>

<%@page import="hibernate.pojo.Dondathang"%>
<%@page import="hibernate.pojo.Sanpham"%>
<%@page import="hibernate.pojo.Chitietdondathang"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<div id="subContent">
    <div id="subMainContent1">
        <div id="static">
            <div class="StaticTopPanel">
                <h2 class="TitleMain">Phiếu mua hàng</h2>                           
            </div>
            <!-- End .StaticTopPanel -->

            <div class="OuterContent">
                <div class="InnerContent">
                    <div class="StaticMain">
                        <ul id="tabHeader">
                            <li class="Active"><a href="" title="Phiếu mua hàng"><span>Phiếu mua hàng</span></a></li>
                            <li><a href="http://deal.zing.vn/deal_user_tmps/deliveryindex" title="Phiếu giao hàng"><span>Phiếu giao hàng</span></a></li>
                            <li><a href="http://deal.zing.vn/zing_transactions" title="Lịch sử giao dịch"><span>Lịch sử giao dịch</span></a></li>
                        </ul>

                        <div class="ContentBlock">
                            <form class="frmNapThe frmQLDH" id="DealUserIndexForm" method="post" action=""><fieldset style="display:none;"><input type="hidden" name="_method" value="POST" /><input type="hidden" name="data[_Token][key]" value="9377ac733e255ab705e10fac0e866a374553cc9a" id="Token1054759194" /></fieldset>                     
                                <ul>
                                    <li>
                                        <p>
                                            <label class="RegMaphieu">Mã phiếu</label>
                                            <input name="data[DealUser][coupon_code]" type="text" maxlength="225" value="" id="DealUserCouponCode" />                            
                                            <input type="submit" class="BtnTimMa" value=" " />
                                        </p>
                                    </li>                                              
                                </ul>      

                                <fieldset style="display:none;"><input type="hidden" name="data[_Token][fields]" value="68f5dd09832a26d035e0f23ffebfa576b5136b94%3An%3A0%3A%7B%7D" id="TokenFields1097819364" /></fieldset></form>                    

                            <table width="100%" cellspacing="0" cellpadding="0" class="MyTable MyTableQLDH">
                                <thead>
                                    <tr>
                                        <th>Ngày Mua</th>
                                        <th>Mã phiếu</th>
                                        <th>Deal</th>
                                        <th>Số lượng</th>
                                        <th>Giá Mua</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <%
                                    List<Chitietdondathang>  lstOrderDetail = (List<Chitietdondathang>)request.getAttribute("searchOrderDeatailResult");
                                    for(int i = 0; i< lstOrderDetail.size(); i++){
                                        Chitietdondathang orderDetail = lstOrderDetail.get(i);
                                        Sanpham product = orderDetail.getSanpham();
                                        Dondathang order = orderDetail.getDondathang();
                                    %>
                                    <tr class="OddRow">
                                        <td class="HorzCenter"><span class="c" title=""><%=order.getNgayDat()%></span></td>
                                        <td class="HorzLeft">
                                            <span class="c"><%=orderDetail.getMaChiTietDonDatHang()%></span></td>
                                        <td class="HorzLeft">
                                            <a href="dealdetailcontroller?action=viewdealdetail&amp;state=opening&amp;maSanPham=<%=product.getMaSanPham()%>" title="<%=product.getTenSanPham()%>"><%=product.getTenSanPham()%></a></td>
                                        <td class="HorzCenter"><span class="c" title="">1</span></td>
                                        <td class="HorzCenter"><%=orderDetail.getThanhTien()%></td>						  
                                    </tr>				
                                    <%}%>			

                                </tbody>
                            </table>
                            <div class="PagingWrapper">
                                <div class="PageControl">
                                    <ul class="PageList">
                                        <span class="PagingFirstPageLnk">&laquo; Trước</span>
                                        <span class="PagingNextPageLnk">Tiếp theo &raquo;</span>
                                    </ul>
                                </div>
                            </div>						</div>
                        <!-- End .ContentBlock -->
                    </div>
                    <!-- End .StaticMain -->
                </div>
                <!-- End .InnerContent -->
            </div>
            <!-- End .OuterContent -->
        </div>
        <!-- End #static -->
        <div class="botSubContent1"></div>
    </div>

    <!-- End #subMainContent1 -->           
</div>